<load file="__PUBLIC__/header.html"/>
<ul class="top_title">
    <li>
        <a href="__CONTROL__/userList" class="menu_title_a">
            <i class="icon icon-share-alt"></i>&nbsp;管理员列表
        </a>
    </li>
    <li>|</li>
    <li>
        <p class="menu_title">添加管理员</p>
    </li>
</ul>
<form action="__METH__" method="post" name="addList">
    <table class="table">
        <thead>
            <tr>
                <th colspan="2">添加管理员</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td align="right" width="40%">账号：</td>
                <td align="left">
                    <input type='text' name="uname" id="uname"/>
                </td>
            </tr>
            <tr>
                <td align="right" width="40%">密码：</td>
                <td align="left">
                    <input type='password' name="upwd" id="upwd"/>
                </td>
            </tr>
            <tr>
                <td align="right" width="40%">重复密码：</td>
                <td align="left">
                    <input type='password' name="rupwd" id="rupwd"/>
                </td>
            </tr>
            <tr>
                <td align="right">管理级别：</td>
                <td>
                    <select name="class">
                        <option value="2">普通管理员</option>
                        <option value="1">超级管理员</option>
                        
                    </select>
                </td>
            </tr>
            
            
            
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" class="menu_submit" value="提交添加"/>
                </td>
            </tr>
        </tbody>
    </table>
</form>
<script type='text/javascript'>
    $(function (){
        $('.menu_submit').click(function(){
            if($("#uname").val()=='')return false;
            if($("#upwd").val()=='')return false;

            if($("#rupwd").val()=='')return false;
            if($("#upwd").val()!=$("#rupwd").val()){
                alert("两次密码不一致");
                return false;
            }
             

        });
    });

</script>
</body>
</html>